<?php 
 $sql = "SELECT
			
				c.creation_time,
				
				d.title,
				d.description
				
			FROM
				news AS c,
				news_description AS d
			WHERE
				c.new_id = d.new_id
				AND
				d.lang_id = '".$_SESSION['lang_id']."'
				AND c.published
				AND sef_url = '".$sef_url."'  ;
			  ";
$result = query($sql);
$row = mysql_fetch_object($result);


head(sth($row->title),'',sth(text_format($row->description, 200)));
?>

<div id="wrap">

	<div id="topicons">
		<a class="icon home" href="<?=HTML_BASE?>"><span><?=__HOME?></span></a>
		<a class="icon about" href="<?=HTML_BASE.$_SESSION['lang']?>/about"><span><?=__ABOUT?></span></a>
		
		
	</div>
	<div id="lefticons">
	
		<a href="<?=HTML_BASE?><?=$_SESSION['lang']?>/news" class="icon news"><span><?=__NEWS?></span></a>
		<a class="icon contacts" href="<?=HTML_BASE.$_SESSION['lang']?>/contacts"><span><?=__CONTACTS?></span></a>
		
	</div>
    
    
	
		<div id="pagecontent">
		<!--<div id="contentimg">
			
		</div>-->
		<div id="contenttextfull">
			 <h1><?=stripslashes($row->title)?></h1><br />
				<div class="date"><?=date('d.m.Y', strtotime($row->creation_time))?></div>
				 
				 <?=stripslashes($row->description)?>
		</div>
	</div>
   
	
<?php

foot();
?>